package com.platform.common.util.query.vo;

import com.platform.common.util.query.constant.Operator;

/**
 * 查询列字段
 * 
 * @date Sep 19, 2017:8:01:49 PM
 * @desc com.netbox.json
 */
public class Fields {
	// 列名称
	private String field;
	// 操作符
	private Operator op;
	// 列值
	private String value;
	// 关系符
	private Operator opt;

	public Fields() {
	}

	public Fields(String field, Operator op, String value) {
		this.field = field;
		this.op = op;
		this.value = value;
	}

	public Fields(String field, Operator op, String value, Operator opt) {
		this.field = field;
		this.op = op;
		this.value = value;
		this.opt = opt;
	}

	public Operator getOpt() {
		return opt;
	}

	public void setOpt(Operator opt) {
		this.opt = opt;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public Operator getOp() {
		return op;
	}

	public void setOp(Operator op) {
		this.op = op;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "Fields [field=" + field + ", op=" + op + ", value=" + value + ", opt=" + opt + "]";
	}

	

}
